package com.glsc.ngateway.common.base.dto.opmanage.report;
/*
 * @author xuam
 * @date 2021/7/9 8:42
 */

public enum UserType {
    INTERNAL("1"),EXTERNAL("2"), SYSTEM("3");
    String type;
    UserType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public static String getValue(String type) {
        for(UserType userType : UserType.values()) {
            if(userType.name().equals(type)) {
                return userType.getType();
            }
        }
        return null;

    }
}
